WpAssetCleanUp\OptimiseAssets\OptimizeCommon D

Total Complexity 413
Dependencies 19
Dependents 18
Total lines 2,177
Lines of code 1,272
Logical lines of code 785
Comment lines 507
Methods 46
Properties 4

Methods 46

Method Rating Maintainability Complexity Lines of code
clearCache()
D
21
59 161
getAssetCachedData()
C
37 28 61
init()
C
35 23 80
getLocalCleanSourceFromTag()
B
42 25 44
matchAndReplaceLinkTags()
B
38 22 62
alterHtmlSource()
B
39 22 54
getLocalAssetPath()
B
44 17 41
setAssetCachedData()
A
43 16 42
getSourceRelPath()
A
43 13 48
clearAssetCachedData()
A
47 14 30
getDomLoadedTag()
A
47 11 38
clearJsonStorageForPost()
A
47 11 33
loadOptimizedAssetsIfQueryStrings()
A
39 5 75
isSourceFromSameHost()
A
49 8 28
clearCacheEnablerCache()
A
53 8 26
filterWpContentUrl()
A
55 8 17
clearAllCacheInlineContentFromTagsNonStatic()
S
54 7 19
getStorageStats()
S
46 5 37
filterStorageFileName()
S
54 6 21
originalContentMarkAsAlreadyMinified()
S
53 6 20
cleanerHtmlSource()
S
56 6 17
maybeAlterHtmlSource()
S
58 6 17
doCombineIsRegularPage()
S
57 6 16
getAnyCdnUrls()
S
59 6 15
rmNonEmptyJsonStorageDir()
S
59 5 13
getPathToAssetDir()
S
55 4 19
stripSourceMap()
S
56 4 18
getTransient()
S
57 4 16
limitAlreadyMarkedAsMinified()
S
56 4 16
doNotClearCache()
S
65 5 9
clearAllCacheOldLegacyDirs()
S
69 5 6
clearAutoptimizeCache()
S
68 5 7
cdnToUrlFormat()
S
60 4 13
getCleanHrefAfterCdnStrip()
S
59 4 13
fetchCachedFilesFrom()
S
62 4 11
applyDebugTiming()
S
50 2 32
generateUniqueNameForCachedAsset()
S
57 3 16
getAlreadyMarkedAsMinified()
S
57 3 16
removeAlreadyMarkedAsMinified()
S
58 3 15
setTransient()
S
59 3 14
deleteTransient()
S
64 3 9
appendInlineCodeToCombineAssetType()
S
69 3 6
getRelPathPluginCacheDir()
S
71 3 5
originalContentIsAlreadyMarkedAsMinified()
S
63 2 9
clearAllCache()
S
80 1 3
clearOtherPluginsCache()
S
77 1 4